﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucPromotionProducts.ascx.cs"
    Inherits="VINETLIFE.Module.ucPromotionProducts" %>
<div class="newproduct">
    <div class="heading">
        <div class="heading1">
            <a href="/khuyen-mai/" title="Danh sách khuyến mãi">
                <h3 class="heading2">
                    SẢN PHẨM KHUYẾN MÃI</h3>
            </a>
        </div>
    </div>
    <div class="foo-news">
        <div id="foo-promotion-product">
            <asp:Repeater runat="server" ID="rptpromotionProduct" OnItemCommand="rptPromotionProduct_OnItemCommand">
                <ItemTemplate>
                    <div class="product">
                        <a class="a-hover" href='/san-pham/<%#FriendlyUrl(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                            title='<%#Eval("ProductTitle") %>'>
                            <img src='/Media/Thumbnail/<%#Eval("Thumbnail")%>' alt='<%#Eval("ProductTitle") %>'
                                title='<%#Eval("ProductTitle") %>' />
                            <div class="product-no-promotion">
                                <p class="hidden p-title">
                                    <%#Eval("ProductTitle") %></p>
                                      <p class="h-old-price">
                                            <%#Eval("Price","{0:0,0} VNĐ") %></p>
                                <p class="hidden p-price">
                                    <%#VINETLIFE.Ultility.GetPrice(Eval("ProductID")) %>
                            </div>
                        </a>
                        <div class="action-product">
                            <div class="product-button">
                                <a href='/san-pham/<%#FriendlyUrl(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                                    title='<%#Eval("ProductTitle") %>' class="detail-product">Chi tiết</a>
                                <%-- <asp:Button runat="server" ID="btnCart" CssClass="h-btn-cart" CommandArgument='<%#Eval("ProductID") %>'
                                    CommandName="AddToCart" />--%>
                                <input type="button" id="btnCart" class="h-btn-cart" onclick="updateCart(<%#Eval("ProductID")%>,1); return false;" />
                            </div>
                        </div>
                        <span class="promotion-product-span">KM</span>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
        <div class="clear">
        </div>
    </div>
    <%-- <a href="#" id="slide-next-pro" class="slidex-prev" style=""><span></span>
    </a><a href="#" id="slide-prev-pro" class="slidex-next" style=""><span>
    </span></a>--%>
</div>
